from country import *
import random
# 随机选择2到10个国家

def get_place():
    selected_countries = random.sample(all_place["country"], random.randint(2, 10))

    # 生成一个0到1之间的随机数
    if random.random() > 0.6:
        # 随机选择一个省份并添加到结果中
        selected_countries.append(random.choice(all_place["province"]))
        selected_countries.append("中国")
    return selected_countries


print(get_place())